<!--# layout("/common/layout.html",{"jsBase":"/js/${target.urlBase}/${entity.code}/"}){ -->

<form class="layui-form layui-form-pane" id="addForm">
	@ var list = entity.generalList;
	@ var size = list.~size; /*一行显示俩个，生成后在根据显示要求调整*/
	@ for(var i=0;i<size;i++){
	@ var item0=list[i];
	@ var item1=(size-i==1)?null:list[i+1];
	@ i=i+1;
	@ var array = [item0,item1];
	<div class="layui-row">
	   <div class="layui-form-item">
		@for(item in array){
		@if(item==null){continue;}
		
			<div class="layui-inline">
			<label class="layui-form-label">${item.displayName}</label>
			<div class="layui-input-inline">
				<input type="text" name="${item.name}" 
					 class="layui-input" >
			</div>
			</div>
		
		@}
		</div>
		
	</div>
	@}
	
	<layui:submitButtons id="addButton" />
</form>
<!--#} -->
<script>
layui.use(['add'], function(){
  var ${entity.code}Add = layui.add
  ${entity.code}Add.init();
});
</script>
